package com.ht.pms.core.dto;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 喻尊龙
 * @since 2018-12-26
 */
@ApiModel
@TableName("t_user_vocation_hours")
public class UserVocationHours extends Model<UserVocationHours> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	@ApiModelProperty(required= true,value = "")
	private Integer id;
    /**
     * 钉钉用户id
     */
	@TableField("user_id")
	@ApiModelProperty(required= true,value = "钉钉用户id")
	private String userId;
    /**
     * 姓名
     */
	@TableField("user_name")
	@ApiModelProperty(required= true,value = "姓名")
	private String userName;
    /**
     * 剩余调休时间
     */
	@TableField("remain_hours")
	@ApiModelProperty(required= true,value = "剩余调休时间")
	private String remainHours;
    /**
     * 公司类型
     */
	@TableField("company_type")
	@ApiModelProperty(required= true,value = "公司类型")
	private String companyType;
    /**
     * 创建时间
     */
	@TableField("create_time")
	@ApiModelProperty(required= true,value = "创建时间")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	@ApiModelProperty(required= true,value = "更新时间")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRemainHours() {
		return remainHours;
	}

	public void setRemainHours(String remainHours) {
		this.remainHours = remainHours;
	}

	public String getCompanyType() {
		return companyType;
	}

	public void setCompanyType(String companyType) {
		this.companyType = companyType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserVocationHours{" +
			", id=" + id +
			", userId=" + userId +
			", userName=" + userName +
			", remainHours=" + remainHours +
			", companyType=" + companyType +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
